package com.heima.apis.admin;

import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(tags = "敏感词控制类api")
public interface AdSensitiveControllerApi {

    @ApiOperation("根据名称分页查询敏感词列表")
    ResponseResult list(SensitiveDto dto);

    @ApiOperation("保存敏感词信息")
    ResponseResult save(AdSensitive adSensitive);

    @ApiOperation("修改敏感词信息")
    ResponseResult update(AdSensitive adSensitive);

    @ApiOperation("删除敏感词信息")
    ResponseResult delete(@ApiParam("文档Id")Integer id);
}
